<!-- DJ -->
<h5 class="memberarea_caption">{$smarty.const.CHOOSE_CAT}</h5>

<p style="background-color:white">{$smarty.const.LA_CHOOSE_CAT}</p>
<div style="clear:both;height:12px;"></div>


{if $set_add_quik==1}
<b>{$smarty.const.LA_QUICK_NAV}</b><br />
	<form action="item.php" name="add_ad" method="post">
	<select name="catid" onchange="checkSelectedOption(this.value, document.add_ad,'{$smarty.const.LA_ONLY_STAR}');">
	<option value='-1'>{$smarty.const.CHOOSE_CAT}</option>
	{$option_list}
	</select>
	</form>
{/if} 



{if $set_add_tree==1}
{*}
<br /><b>{$smarty.const.LA_TREE_NAV}</b><br />
<a href="javascript:{$tree_name}.openAll()">{$smarty.const.LA_EXPAND_ALL}</a> | 
<a href="javascript:{$tree_name}.closeAll()">{$smarty.const.LA_COLL_All}</a>
<br/><br/>

<script language="javascript" type="text/javascript">
<!--
{$tree_name} = new dTree('{$tree_name}');
{$tree_name}.add(0,-1,'{$smarty.const.LA_CATEGORIES}');
{$tree}
document.write({$tree_name});
//-->
</script>
{/*}

<script language="javascript" type="text/javascript">
<!--
//Ventas
{$tree_nameV} = new dTree('{$tree_nameV}');
{$tree_nameV}.add({$smarty.const.ID_CAT_COMPRA},-1,'Vender');
{$treeV}
//document.write({$tree_nameV});

//Alquiler
{$tree_nameA} = new dTree('{$tree_nameA}');
{$tree_nameA}.add({$smarty.const.ID_CAT_ALQUILER},-1,'Alquilar');
{$treeA}


//Servicios
{$tree_nameS} = new dTree('{$tree_nameS}');
{$tree_nameS}.add({$smarty.const.ID_CAT_SERVICIOS},-1,'Servicios');
{$treeS}
//-->
</script>	


{/if}

{literal}
<script type="text/javascript" type="text/javascript">
<!--
	jQuery(function() {
		jQuery("#tabs_cat").tabs();
	});

	jQuery(document).ready(function(){
		if( '{/literal}{$last_element}{literal}'=='' || $("{/literal}a[href$={$last_element}]{literal}").length == 0){
			window.location = location.href; 
		}
 	});
//-->	
</script>
{/literal}
<div id="tabs_cat" style="">
<div style="font-weight:bold; text-align:center;">Seleccione Tipo de Operaci&oacute;n</div>

	<ul>
		<li><a href="#tabs-1">Vender</a></li>
		<li><a href="#tabs-2">Alquilar</a></li>
		<li><a href="#tabs-3">Servicios</a></li>
	</ul>
	<div id="tabs-1" style="height:auto">
		<strong>
			<a href="javascript:{$tree_nameV}.openAll()">{$smarty.const.LA_EXPAND_ALL}</a> | 
			<a href="javascript:{$tree_nameV}.closeAll()">{$smarty.const.LA_COLL_All}</a>
		</strong>
		<script type="text/javascript">
		<!--
			document.write({$tree_nameV});
		//-->	
		</script>
  	</div>
	<div id="tabs-2" style="height:auto">
		<a href="javascript:{$tree_nameA}.openAll()">{$smarty.const.LA_EXPAND_ALL}</a> | 
		<a href="javascript:{$tree_nameA}.closeAll()">{$smarty.const.LA_COLL_All}</a>
		<script type="text/javascript">
		<!--
			document.write({$tree_nameA});
		//-->	
		</script>		
	</div>
	<div id="tabs-3" style="height:auto">
		<a href="javascript:{$tree_nameS}.openAll()">{$smarty.const.LA_EXPAND_ALL}</a> | 
		<a href="javascript:{$tree_nameS}.closeAll()">{$smarty.const.LA_COLL_All}</a>
		<script type="text/javascript">
		<!--
			document.write({$tree_nameS});
		//-->	
		</script>			
	</div>
</div>
<!-- End Dropdown Choose Cat menu -->

